package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.OrderPurchaseProcessContractDO;
import com.ssy.lingxi.order.entity.OrderPurchaseProcessDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 * 采购流程规则关联的合同Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-24
 */
@Repository
public interface OrderPurchaseProcessContractRepository extends JpaRepository<OrderPurchaseProcessContractDO, Long>, JpaSpecificationExecutor<OrderPurchaseProcessContractDO>, QuerydslPredicateExecutor<OrderPurchaseProcessContractDO> {

    @Transactional
    void deleteByProcess(OrderPurchaseProcessDO purchaseProcess);
}
